package com.cd.quartz.domain;

import com.cd.common.domain.BaseDomain;
import com.cd.common.domain.BaseEntity;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
* @description 定时任务调度日志表 ||  || 
* @author admin
* @date 2024-03-25
*/
@Entity
@Data
@Table(name = "sys_job_log")
public class SysJobLog extends BaseDomain {

    private static final long serialVersionUID = 1L;

    @Id
    //@Comment("任务日志ID")
    @Column(name = "job_log_id", nullable = false )
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long jobLogId;

    //@Comment("任务名称")
    @Column(name = "job_name", nullable = false )
    private String jobName;

    //@Comment("任务组名")
    @Column(name = "job_group", nullable = false )
    private String jobGroup;

    //@Comment("调用目标字符串")
    @Column(name = "invoke_target", nullable = false )
    private String invokeTarget;

    //@Comment("日志信息")
    @Column(name = "job_message" )
    private String jobMessage;

    //@Comment("执行状态（0正常 1失败）")
    @Column(name = "status" )
    private String status;

    //@Comment("异常信息")
    @Column(name = "exception_info" )
    private String exceptionInfo;

    //@Comment("创建时间")
    @Column(name = "create_time" )
    private Date createTime;

    @Transient
    /** 开始时间 */
    private Date startTime;

    @Transient
    /** 停止时间 */
    private Date stopTime;

}

